package simplefactory;

public class Test {
    public static void main(String[] args) {
        Product p = SimpleFactory.createProduct("A");
        if (p != null) {
            p.doSomething();
        }
    }
}